package com.ruoyi.gis.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 文件信息对象 sam_file
 * 
 * @author rww
 * @date 2023-12-19
 */
public class SamFile extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** PID */
    @Excel(name = "PID")
    private Long pid;

    /** 文件原始名称 */
    @Excel(name = "文件原始名称")
    private String originalFilename;

    /** 文件名称 */
    @Excel(name = "文件名称")
    private String fileName;

    /** 文件大小 */
    @Excel(name = "文件大小")
    private Long fileSize;

    /** 访问路径 */
    @Excel(name = "访问路径")
    private String filePath;

    /** 文件类型，扩展类型 */
    @Excel(name = "文件类型，扩展类型")
    private String contentType;

    /** 文件类型  1：文件夹   2：文件 */
    @Excel(name = "文件类型  1：文件夹   2：文件")
    private String fileType;

    /** 状态（0不启用，1启用） */
    @Excel(name = "状态", readConverterExp = "0=不启用，1启用")
    private Integer status;

    /** 对象储存bucket */
    @Excel(name = "对象储存bucket")
    private String bucket;

    /** 对象储存名称 */
    @Excel(name = "对象储存名称")
    private String objectName;

    /** 文件标识md5 */
    @Excel(name = "文件标识md5")
    private String identifier;

    /** 创建人id */
    @Excel(name = "创建人id")
    private Long userId;

    /** 图层 */
    @Excel(name = "图层")
    private Long layerId;

    /** 文件无扩展名 */
    @Excel(name = "文件无扩展名")
    private String fileNameNoExt;

    /** 文件信息 */
    @Excel(name = "文件信息")
    private String fileInfo;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPid(Long pid) 
    {
        this.pid = pid;
    }

    public Long getPid() 
    {
        return pid;
    }
    public void setOriginalFilename(String originalFilename) 
    {
        this.originalFilename = originalFilename;
    }

    public String getOriginalFilename() 
    {
        return originalFilename;
    }
    public void setFileName(String fileName) 
    {
        this.fileName = fileName;
    }

    public String getFileName() 
    {
        return fileName;
    }
    public void setFileSize(Long fileSize) 
    {
        this.fileSize = fileSize;
    }

    public Long getFileSize() 
    {
        return fileSize;
    }
    public void setFilePath(String filePath) 
    {
        this.filePath = filePath;
    }

    public String getFilePath() 
    {
        return filePath;
    }
    public void setContentType(String contentType) 
    {
        this.contentType = contentType;
    }

    public String getContentType() 
    {
        return contentType;
    }
    public void setFileType(String fileType) 
    {
        this.fileType = fileType;
    }

    public String getFileType() 
    {
        return fileType;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setBucket(String bucket) 
    {
        this.bucket = bucket;
    }

    public String getBucket() 
    {
        return bucket;
    }
    public void setObjectName(String objectName) 
    {
        this.objectName = objectName;
    }

    public String getObjectName() 
    {
        return objectName;
    }
    public void setIdentifier(String identifier) 
    {
        this.identifier = identifier;
    }

    public String getIdentifier() 
    {
        return identifier;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setLayerId(Long layerId) 
    {
        this.layerId = layerId;
    }

    public Long getLayerId() 
    {
        return layerId;
    }
    public void setFileNameNoExt(String fileNameNoExt) 
    {
        this.fileNameNoExt = fileNameNoExt;
    }

    public String getFileNameNoExt() 
    {
        return fileNameNoExt;
    }
    public void setFileInfo(String fileInfo) 
    {
        this.fileInfo = fileInfo;
    }

    public String getFileInfo() 
    {
        return fileInfo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("pid", getPid())
            .append("originalFilename", getOriginalFilename())
            .append("fileName", getFileName())
            .append("fileSize", getFileSize())
            .append("filePath", getFilePath())
            .append("contentType", getContentType())
            .append("fileType", getFileType())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("bucket", getBucket())
            .append("objectName", getObjectName())
            .append("identifier", getIdentifier())
            .append("userId", getUserId())
            .append("layerId", getLayerId())
            .append("fileNameNoExt", getFileNameNoExt())
            .append("fileInfo", getFileInfo())
            .toString();
    }
}
